//菜单导航
$('#work_menu').click(function(){
	location.href = adminPath + '/index.html?menu=index&tab=work_desktop';
});

$('#order_menu').click(function(){
	location.href = adminPath + '/order/order_list.html?menu=order_manage&tab=order_list';
});

$('#product_menu').click(function(){
	location.href = adminPath + '/product/product_list.html?menu=product_manage&tab=product_list';
});

$('#member_menu').click(function(){
	location.href = adminPath + '/member/member_list.html?menu=member_manage&tab=member_list';
});

$('#marketing_menu').click(function(){
	location.href = adminPath + '/marketing/marketing.html?menu=marketing_manage&tab=active';
});

$('#report_menu').click(function(){
	location.href = adminPath + '/report/report.html?menu=report_manage&tab=day';
});

$('#system_menu').click(function(){
	location.href = adminPath + '/system/user_list.html?menu=sys_manage&tab=user_list';
});

//菜单子项 系统菜单
$('#add_user').click(function(){
	location.href = adminPath + '/system/add_user.html?menu=sys_manage&tab=add_user';
});

$('#user_list').click(function(){
	location.href = adminPath + '/system/user_list.html?menu=sys_manage&tab=user_list&current_page=1';
});

$('#add_role').click(function(){
	location.href = adminPath + '/system/add_role.html?menu=sys_manage&tab=add_role';
});

$('#role_list').click(function(){
	location.href = adminPath + '/system/role_list.html?menu=sys_manage&tab=role_list';
});

var params = document.location.search;
var menu = $Util.getQueryString(params, "menu");
var tab = $Util.getQueryString(params, "tab");
var currentPage = $Util.getQueryString(params, "current_page");
currentPage = (currentPage == '' ? 1 : currentPage);
var tabName = $('#' + tab + '>a').html();
$('#nav_name').html(tabName);
$('#' + tab).html(tabName);
$('#' + tab).addClass('heading selected');
$('#' + menu).show();
